﻿@Inherits System.Web.Mvc.WebViewPage(Of SistemaINCA.Models.ViewModels.MatriculaModel)
@Code
    Dim iAnioMatricula As Integer = Date.Now.AddYears(1).Year
    Dim lstGenero As IEnumerable(Of SelectListItem) = {New SelectListItem With {.Text = "Masculino", .Value = "M"},
                                                       New SelectListItem With {.Text = "Femenino", .Value = "F"}}
    Dim lstEspecialidades As IEnumerable(Of SelectListItem) = {New SelectListItem With {.Text = "General", .Value = "General"},
                                                               New SelectListItem With {.Text = "Ciencias Economicas", .Value = "Ciencias Economicas"}}
End Code    
@MvcHtmlString.Create(Bundle.JavaScript() _
                      .Add("~/Scripts/App/PartialViews/Ready_ViewMatricula_DataAlumno.js") _
                      .ForceRelease _
                      .Render("~/Scripts/JSPartialView_Step1.js"))
@Using Html.BeginForm("Matricula_Save_Alumno", "Matricula", FormMethod.Post)
    @<section id="sec-grado">
        <h2>DEFINICIÓN DEL GRADO Y ESPECIALIDAD</h2>
        <div class="line-titulo"></div>
        <div id="sec-cont-grado-especialidad" class="form-sections">
            <table class="form-sections-table">
                <tr>
                    <td style="width: 340px;" class="form-sections-table-cells-titulos">Seleccione el grado en el cual desea estudiar:</td>
                    <td>
                        <span style="margin-right: 30px;">@Html.RadioButtonFor(Function(m) m.frm_grado, "1") 1 año de bachillerato</span>
                        <span style="margin-right: 30px;">@Html.RadioButtonFor(Function(m) m.frm_grado, "2") 2 año de bachillerato</span>
                        <span>@Html.RadioButtonFor(Function(m) m.frm_grado, "3")3 año de bachillerato</span>
                    </td>
                </tr>
                <tr>
                    <td class="form-sections-table-cells-titulos">Seleccione la especialidad en la cual desea estudiar:</td>
                    <td>@Html.DropDownList("frm_especialidad", lstEspecialidades)</td>
                </tr>
            </table>
        </div>
     </section>
     @<section id="sec-datospersonales">
        <h2>DATOS PERSONALES</h2>
        <div class="line-titulo"></div>
        <div id="sec-cont-datos-personales" class="form-sections">
            <table class="form-sections-table">
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">Nombres:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Nombres, New With {.placeholder = "Escriba el primer y segundo nombre del alumno", .maxlength = "25", .Style = "width: 350px;", .class = "validate[required]"})</span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">Apellidos:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Apellidos, New With {.placeholder = "Escriba el primer y segundo apellido del alumno", .maxlength = "25", .Style = "width: 350px;", .class = "validate[required]"})</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">Género:</span>
                        <span>@Html.DropDownListFor(Function(m) m.frm_Genero, lstGenero)</span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">DUI (Si posee):</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_DUI, New With {.placeholder = "En formato 00000000-0", .maxlength = "10", .Style = "width: 150px;", .class = "validate[custom[DUI]]"})</span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">NIE:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_NIE, New With {.placeholder = "No. de identicación del estudiante", .maxlength = "16", .Style = "width: 300px;", .class = "validate[required, ajax[Matricula_NIE]]"})</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">País de Nacimiento:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Pais, New With {.acAttr = "data-id-pais", .placeholder = "Buscar pais...", .maxlength = "80", .Style = "width: 160px;", .class = "validate[required]"})</span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">Fecha de nacimiento:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_FNacimiento, New With {.placeholder = "dd/mm/aaaa", .maxlength = "10", .Style = "width: 90px;", .class = "form-datepick-control validate[required,custom[date], funcCall[IsDate]]"})</span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">¿Estudio parvularia?:</span>
                        <span>
                            <span style="margin-right: 10px;">@Html.RadioButtonFor(Function(m) m.frm_eparvularia, "1")Sí</span>
                            <span>@Html.RadioButtonFor(Function(m) m.frm_eparvularia, "0")No</span> 
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">Centro Escolar de Procedencia:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_CEProcedencia, New With {.acAttr = "data-id-ce", .placeholder = "Buscar el nombre del Centro Escolar de Procedencia del alumno...", .maxlength = "250", .Style = "width: 670px;", .class = "validate[required]"})</span>
                    </td>
                </tr>
            </table>
        </div>
     </section>
    @<section id="sec-datos-residencia">
        <h2>DATOS DE RESIDENCIA</h2>
        <div class="line-titulo"></div>
        <div id="sec-cont-datos-residencia" class="form-sections">
            <table class="form-sections-table">
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">Dirección de residencia:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Direccion, New With {.placeholder = "Escriba la dirección completa de residencia", .maxlength = "150", .Style = "width: 715px;", .class = "validate[required]"})</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">Departamento:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Departamento, New With {.acattr = "#frm_DepartamentoID", .placeholder = "Buscar Deparamento...", .maxlength = "25", .Style = "width: 170px;", .class = "validate[required]"})
                              @Html.HiddenFor(Function(m) m.frm_DepartamentoID)
                        </span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">Municipio:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Municipio, New With {.depende = "#frm_DepartamentoID", .placeholder = "Busque su municipio...", .maxlength = "100", .Style = "width: 300px;", .class = "validate[required]"})
                        </span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">Teléfono:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Telefono, New With {.placeholder = "0000-0000", .maxlength = "9", .Style = "width: 80px;", .class = "validate[required, custom[phone]]"})</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">Celular (Opcional):</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_Celular, New With {.placeholder = "7000-0000", .maxlength = "9", .Style = "width: 80px;", .class = "validate[custom[phone]]"})</span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">Correo Electrónico:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_CorreoE, New With {.type = "email", .placeholder = "Escriba el correo electrónico de contacto del alumno", .maxlength = "35", .Style = "width: 350px;", .class = "validate[required, custom[email]]"})</span>
                    </td>
                </tr>
            </table>
        </div>
      </section>
    @<section id="sec-datos-situacion-familiar">
        <h2>DATOS SOBRE LA SITUACIÓN FAMILIAR</h2>
        <div class="line-titulo"></div>
        <div id="sec-cont-datos-situacion-familiar" class="form-sections">
            <table class="form-sections-table">
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">No. de miembros que viven con el alumno:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_NMiembros, New With {.maxlength = "2", .type = "number", .Style = "width: 30px;", .class = "validate[required, custom[integer], min[1]]"}) miembro(s)</span>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span form-sections-table-cells-span-intermedio">¿El alumno posee actualmente un trabajo?:</span>
                        <span>
                            <span style="margin-right: 10px;">@Html.RadioButtonFor(Function(m) m.frm_trabaja, "1")Sí</span>
                            <span>@Html.RadioButtonFor(Function(m) m.frm_trabaja, "0")No</span> 
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">¿El alumno tiene hijos?:</span>
                        <span>
                            <span style="margin-right: 10px;">@Html.RadioButtonFor(Function(m) m.frm_thijos, "1")Sí</span>
                            <span>@Html.RadioButtonFor(Function(m) m.frm_thijos, "0")No</span> 
                        </span>
                    </td>
                </tr>
            </table>
        </div>
     </section>
    @<section id="sec-datos-otras-consideraciones">
        <h2>OTRAS CONSIDERACIONES ADICIONALES</h2>
        <div class="line-titulo"></div>
        <div id="sec-cont-datos-otras-consideraciones" class="form-sections">
            <table class="form-sections-table">
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">Enfermedad que padece:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_EnfermedadesPadece, New With {.maxlength = "250", .placeholder = "Escriba aquí si el alumno padece alguna enfermedad", .type = "text", .Style = "width: 710px;", .class = "validate[]"})</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span class="form-sections-table-cells-titulos form-sections-table-cells-span">¿Tiene algún medicamento prescrito permanente?:</span>
                        <span>@Html.TextBoxFor(Function(m) m.frm_MedicamentoPermanente, New With {.maxlength = "250", .placeholder = "Escriba si el alumno debe de tomar algún medicamento permanente", .type = "text", .Style = "width: 545px;", .class = "validate[]"})</span>
                    </td>
                </tr>
            </table>
        </div>
     </section>
    @<div style="margin: 15px; display: block; text-align: center;">
        <input id="btnSendData" class="button-link" action="/Matricula/Matricula_Save_Alumno" value="Guardar y continuar al Paso No. 2" style="width: 220px; text-align: center;" />
    </div>
    
End Using
@Html.ValidationSummary(False, "EL FORMULARIO DE DATOS PERSONALES DEL ALUMNO PARA MATRICULA " & iAnioMatricula & " POSEE LOS SIGUIENTES ERRORES")

